﻿using System;
using InsuranceAdjuster.Web.Models;

namespace InsuranceAdjuster.Services {
    public interface IPageConductor
    {
        void DisplayError(string origin, Exception e, string details);
        void DisplayError(string origin, Exception e);
        void GoToView(string viewToken);
        void GoBack();

        void PushState(string key, object value);
        T PopState<T>(string key) where T : class;
        T PeekState<T>(string key) where T : class;
    }
}